﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Thaire.Investment.Domains.Master
{
    public class CounterParties
    {
        #region Properties
        // COUNTERPARTIES_ID
        public virtual int CounterpartiesId { set; get; }
        // COUNTERPARTIES_CODE_NAME
        public virtual String CounterpartiesCodeName { set; get; }
        // COUNTERPARTIES_NAME_EN
        public virtual String CounterpartiesNameEn { set; get; }
        // COUNTERPARTIES_NAME_TH
        public virtual String CounterpartiesNameTh { set; get; }
        // COUNTERPARTIES_ADDRESS
        public virtual String CounterpartiesAddress { set; get; }
        // COUNTERPARTIES_CONTACT
        public virtual String CounterpartiesContact { set; get; }
        // COUNTERPARTIES_EMAIL
        public virtual String CounterpartiesEmail { set; get; }
        // COUNTERPARTIES_TEL
        public virtual String CounterpartiesTel { set; get; }
        // COUNTERPARTIES_FAX
        public virtual String CounterpartiesFax { set; get; }
        // COUNTERPARTIES_GROUP_COUNTER
        public virtual String CounterpartiesGroupCounter { set; get; }
        // CREATE_USER_ID
        public virtual String CreateUserId { set; get; }
        // CREATE_TS
        public virtual DateTime? CreateTs { set; get; }

        #endregion



        public override bool Equals(object obj)
        {
            if (obj == null)
                return false;
            if (obj.GetType() != typeof(CounterParties) && !(obj is CounterParties))
                return false;
            return ToString().Equals(obj.ToString());
        }

        public override int GetHashCode()
        {
            return ToString().GetHashCode();
        }

        public override string ToString()
        {
            return string.Format("{0}", CounterpartiesId);
        }

    }
}
